<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'regStu.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <h2>学生注册</h2>
		<form action="doreg.jsp" method="post">
			<ul>
				<li><label>姓名</label><input type="text" id="" value="" name="name"/></li>
				<li><label>性别</label><input type="radio" name="sex" id="sex" value="男" checked="checked" />男
				<input type="radio" name="sex" id="sex" value="女" />女
				</li>
				<li><label>年级</label><input type="text" id="" value="" name="gradeID"/></li>
				<li><input type="submit" value="注册"/></li>
			</ul>			
		</form>
  </body>
</html>
